package com.wondertek.service.dto.app.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @description: 手机号注册
 * @author: qinjianhui
 * @create: 2024-07-29 14:38
 **/
@Data
public class AppAuthMobileRegisterReq {

    /*
     * 手机
     * */
    @Schema(name = "mobile",description = "手机号码")
    private String mobile;

    @Schema(name = "countryCode",description = "区号")
    private String countryCode;

    /*
     * 密码
     * */
    @NotBlank(message = "password.not.null")
    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d).{8,20}", message = "password.length")
    @Schema(name = "password",description = "密码")
    private String password;
}

